let demand = []//求租
let lessee = []//租户

function modify(params) {
    params.forEach(element => {
        if (element.role == '1') {
            demand.push(element)
        }
        if (element.role == '2') {
            lessee.push(element)
        }
    });
}
function getDay(day) {
    var today = new Date()
    var targetday_milliseconds = today.getTime() + 1000 * 60 * 60 * 24 * day
    today.setTime(targetday_milliseconds)
    var tYear = today.getFullYear()
    var tMonth = today.getMonth()
    var tDate = today.getDate()
    tMonth = doHandleMonth(tMonth + 1)
    tDate = doHandleMonth(tDate)
    return tYear + '年' + tMonth + '月' + tDate + '日'
  }
  function doHandleMonth(month) {
    var m = month
    if (month.toString().length == 1) {
      m = '0' + month
    }
    return m
  }
export default function muted(ss,n) {
    var time = getDay(n) //获取当前日期加时间
    let daily = []
    ss.forEach(item=>{
        if(item.registeredTime == time){
            daily.push(item)
        }
    })
    let data = {
        time,
        daily,
    }
    return data
}

